package stu.sup.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import stu.sup.entity.Merchants;
import stu.sup.entity.MerchantsExample;

public interface MerchantsMapper {
    int countByExample(MerchantsExample example);

    int deleteByExample(MerchantsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Merchants record);

    int insertSelective(Merchants record);

    List<Merchants> selectByExample(MerchantsExample example);

    Merchants selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Merchants record, @Param("example") MerchantsExample example);

    int updateByExample(@Param("record") Merchants record, @Param("example") MerchantsExample example);

    int updateByPrimaryKeySelective(Merchants record);

    int updateByPrimaryKey(Merchants record);

    @Select("select * from merchants where merchants_name=#{value}")
    Merchants selectByUserName(String merchatsName);
}